import variables from '@/style/variables.scss'
const getters = {
  token: (state) => state.user.token,
  userInfo: (state) => state.user.userInfo,
  hasUserInfo: (state) => {
    return Object.keys(state.user.userInfo).length > 0
  },
  cssVar: (state) => variables,
  isOpenLeftMenu: (state) => state.app.openLeftMenu,
  language: (state) => state.app.language,
  mainColor: (state) => state.theme.mainColor
}

export default getters
